Device Template File Properties
The DNP3 device template files include sections specific only to DNP3 devices. For more information, see the following subsections:
dnp3Support Element
The dnp3Suppport section of the device template file provides information on specific DNP3-related features: point types and automatic polling. Point types supported by the device are grouped in this section. Automatic polling of associated remote devices is defined by IIN flags in this section.
Example
The following example displays a sample dnp3Support structure.
|
<dnp3Support fragmentSizeToDev="2048" fragmentSizeFromDev="2048"> <ptTypes canGetRange="true" canGetDiscrete="false" canSetRange="false" canSetDiscrete="true"> <!--funcCode for write operations: SelectOperate, DirectOperate--> <AI> <dataTypes> <i2/> <i4/> <r4/> </dataTypes> </AI> <AID canSetRange="true" canSetDiscrete="false"/> <AO hasEvents="false"> <write funcDode="SelectOperate" maxPts="16"/>> </AO> <BI/> <BI2/> <BO> <write funcCode="SelectOperate" maxPts="16"/> </BO> <CT/> <CTF/> <STR/> </ptTypes> <autoPoll enable="false"> <DeviceLoad cmdType="INTEGRTY"> <!--triggered on UIS restart, RD re-enable--> </DeviceLoad> <IIN.1 cmdType="DG_F_DEV" dgType="Event"> <uccParms Class1="true"/> <!--IIN.1 indicates class 1 events are available--> </IIN.1> <IIN.2 cmdType="DG_F_DEV" dgType="Event"> <uccParms Class2="true"/> <!--IIN.2 indicates class 2 events are available--> </IIN.2> <IIN.3 cmdType="DG_F_DEV" dgType="Event"> <uccParms Class3="true"/> <!--IIN.3 indicates class 3 events are available--> </IIN.3> <IIN.4 enable="true" cmdType="DG_T_DEV" dgType="DateTime"> <!--IIN.4 indicates needs time--> </IIN.4> <IIN.7 cmdType="RESTART"> <!--IIN.7 indicates a device restart--> </IIN.7> <IIN.11 cmdType="INTEGRTY"> <!--IIN.11 indicates event overflow--> </IIN.11> </autoPoll> </dnp3Support> |
Attributes
The following table lists and describes attributes generally applicable to the dnp3Support element.
| Attribute | Description |
|---|---|
|
fragmentSizeFromDev |
Indicates the maximum size of the fragment sent from the device to CygNet.
|
|
fragmentSizeToDev |
Indicates the maximum size of the fragment sent from CygNet to the device.
|
ptTypes Element
The ptTypes element contains an entry for each point type supported by the device. In CygNet Explorer, the Single Point and Event parameters dialog boxes will only include point types listed in ptTypes element.
Attributes
The following table lists and describes attributes applicable to the ptTypes element.
| Attribute | Description |
|---|---|
|
canGetDiscrete |
Indicates whether the device will accept messages formatted to have a discrete set of points when requesting data. The flags can be set at the parent (ptTypes) element and inherited for each point type. The default value is false. |
|
canGetRange |
Indicates whether the device will accept messages formatted to have a range of points when requesting data. The flags can be set at the parent (ptTypes) element and inherited for each point type. The default value is false. |
|
canSetDiscrete |
Indicates whether the device will accept messages formatted to have a discrete set of points when sending data. The flags can be set at the parent (ptTypes) element and inherited for each point type. The default value is false. |
|
canSetRange |
Indicates whether the device will accept messages formatted to have a range of points when sending data. The flags can be set at the parent (ptTypes) element and inherited for each point type. The default value is false. |
ptTypes Child Elements
The ptTypes element supports the following child elements.
| Element | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
point types |
Each point type used in devices that support the DNP3 protocol, e.g. AI, AID, AIF, AO, BI, BI2, BO, CT, CTF, IIN, STR is represented as a unique node. Point TypesThe following table lists the point types used in devices that support DNP3 protocol. For more specific information about point types, see the appropriate manufacturer-provided documentation.
Each point type can contain the following attribute:
|
||||||||||||||||||||||||||||||||||||
|
dataTypes |
The dataTypes element enumerates which data types are supported for the point type. If none are listed, all are supported. |
||||||||||||||||||||||||||||||||||||
|
write |
The write element contains attributes pertaining to sending binary output and analog output values to the device:
|
autoPoll Element
An integrity poll is automatically performed when the autoPoll element is enabled in the dnp3Support element section of the device template file, according to the DNP3 Internal Indication Number (IIN) flags present. IIN.0 to IIN.15 flags are supported and are defined in the "Internal Indications" (IntInd) data group in the device template file. See the for DNP3 EIE and DNP3 Emerson EIE data groups for more information.
-
If autoPoll is set to true, the EIE triggers automatic polls based on internal indications (IIN) flags set in the device response.
-
If autoPoll is set to false, the flags are ignored.
When autoPoll is enabled, the EIE automatically performs the associated configured command (cmdType) according to the IIN flags present. The default configuration for a device type is configured in the device template file. Each device instance can be individually enabled in the device template file, or optionally overridden at the device level. To override the template for individual device instances, use the Auto poll button on the Device tab of the remote device editor. See Polling Notes for more information about auto polling.
Elements
The autoPoll element supports the following child elements. See the sample AutoPoll structure above.
| Element | Description |
|---|---|
|
DeviceLoad |
The DeviceLoad element indicates the UIS device load and command. DeviceLoad has the following parameter options: DeviceLoad attribute
|
|
IIN.n flag |
The IIN.n elements represent the internal indication (IIN) flags. Each IIN.n flag has the same parameter options: IIN.n attributes
uccParms elementA uccParms element, UIS command component parameters (UCC parameters), is supported if the data group has required parameters:
|
statusFlags Element
The statusFlags section of a DNP3 device template file is an optional section that indicates how to map flags from the device to point status bits in the PNT. If omitted, none of the flags from the device will be mapped to CygNet status bits. This section contains an element for each flag set by the device. Only the flags that the user is interested in mapping need to be included in the device template file.
Example
The following example displays a sample statusFlags structure.
<statusFlags>
<online state="false" setUnreliable="true"/>
<restart state="true" setUnreliable="true"/>
<commLost state="true" setUnreliable="true"/>
<remoteForced state="true" setUser13="true"/>
<localForced state="true" setUser13="true" setUser14="true"/>
<chatterFilter state="true" setUnreliable="true"/>
<overRange state="true" setUnreliable="true" setUser15="true"/>
<discontinuity state="true" setUser16="true"/>
<referenceErr state="true" setUnreliable="true"/>
</statusFlags>
DNP3 Status Flag Elements
The following table describes the child elements of the statusFlags element, which correspond to the DNP3 status flags. For more information, see the DNP3 documentation.
| Property | Description |
|---|---|
|
chatterFilter |
When set, indicates the value is presently changing values rapidly; applies to binary input and double-bit binary input point types. |
|
commLost |
If true, there is a communication failure in the path between the device where the data originates and the reporting device and that the value reported may be stale. |
|
discontinuity |
If true, the reported counter value cannot be compared against a prior value to obtain the correct count difference; applies to counter point types. |
|
localForced |
If set, indicates the value is overridden by the device that reports this flag as set. |
|
online |
A bit value of 1 indicates the point is active; a bit value of 0 indicates the point is inactive, unavailable, or out-of-service. |
|
overRange |
If set, indicates that a point’s value exceeds the valid measurement range of the point; applies to analog input point types. |
|
referenceErr |
If set, the measurement process determined that the point’s value might not be accurate; applies to analog input point types. |
|
remoteForced |
If true, the value is overridden in a downstream reporting device. |
|
restart |
When true, indicates the point has not been updated from the field since device reset. |
Attributes
The following table lists and describes the attributes applicable to the status flag elements.
| Attributes | Description |
|---|---|
|
state |
The state attribute indicates whether to perform the defined actions when the bit is set (true) or cleared (false). |
|
setUnreliable setUser1 - setUser16 |
Each flag may include the following attributes that map to CygNet point status bits in the PNT:
Indicate whether to set the bit as (true) or cleared (false). See Point Status Bits for a description of CygNet status bits that can be mapped. |


